From: Richard M. Stallman Date: Thu, 15 Aug 2002 20:32:05 +0000 (+0000) Subject: Mention define-generic-mode. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~31140 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=43784971394b88c7f5e2569ac96fab5bcabac998;p=emacs.git Mention define-generic-mode. --- diff --git a/lispref/modes.texi b/lispref/modes.texi index 4c888448d66..65931150975 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -69,6 +69,11 @@ it is convenient to use @code{define-derived-mode} with a @code{nil} parent argument, since it automatically enforces the most important coding conventions for you. +@findex define-generic-mode + For a very simple programming language major mode that handles +comments and fontification, you can use @code{define-generic-mode} +in @file{generic.el}. + Rmail Edit mode offers an example of changing the major mode temporarily for a buffer, so it can be edited in a different way (with ordinary Emacs commands rather than Rmail commands). In such cases, the